/*创建Vue实例*/
var vm = new Vue({
    el: '#app',
    data: {
        cakes: []
    }, mounted: function () {

        for(var i=0;i<8;i++){
            var cake = {
                id:i+1,
                name:'cake'+(i+1),
                price:100+10*i
            }

            this.cakes.push(cake)
        }

    }
})


